<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <%include public/public.ejs%>
  </head>
  <body ng-app="app" ng-controller="ctrl">
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
    <a href="/demo/users">后台redirect示例</a>
    <br>
    <button ng-click="ajaxDemo()">ajax示例</button>

    <p>form</p>
    <form action="/demo/users/form" method="post">
      <input type="text" name="user[id]"/>
      <input type="text" name="user[name]">
      <button type="submit">submit</button>
    </form>
  </body>
</html>
<script src="/app/indexApp.js"></script>